You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clValue Structure > clValue Methods > clValue.Rem Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clValue.Rem Method

The Reminder after division X/Y.

Syntax
C#
Visual Basic
public TOpenCLValue Rem([In] TOpenCLValue X, [In] TOpenCLValue Y);

Calculates reminder after division according to formula: 

x[i]-y[i]*Trunc(x[i]/y[i]). 

The results will be saved to the calling object.

var a,b,c: clValue; begin a.Copy(4); b.Copy(3); c.Rem(a,b); // c = Rem(4,3) end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!